const express = require("express")
// 得到路由对象
const router = express.Router()

router.get('/info', (req, res) => {
  res.send('<h1 style="color: red">GET Request --Router</h1>')
})

router.post('/center', (req, res) => {
  res.send('<h1 style="color: red">POST Request --Router</h1>')
})

module.exports = router
